package com.csun.cmny.provider.service.impl;

import com.csun.cmny.core.support.BaseService;
import com.csun.cmny.provider.dao.OmcChannelsMapper;
import com.csun.cmny.provider.model.domain.OmcChannels;
import com.csun.cmny.provider.model.dto.channels.ChannelsQueryDto;
import com.csun.cmny.provider.service.OmcChannelsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@Service
@Transactional(rollbackFor = Exception.class)
public class OmcChannelsServiceImpl extends BaseService<OmcChannels> implements OmcChannelsService {

    @Resource
    private OmcChannelsMapper omcChannelsMapper;

    @Override
    public List<OmcChannels> selectChannels(ChannelsQueryDto channelsQueryDto) {
        return omcChannelsMapper.selectChannels(channelsQueryDto);
    }
}
